package com.sanploy.file.dto;

import com.sanploy.file.enums.FileType;

/**
 * Created by zhu yingzhi on 2017/9/13.
 * 用于存储对应的文件类别对应的实际文件夹类
 */
public class FoldToType {
    private FileType fileType;
    private String fold;
    private boolean isChange;
    private int width;
    private int high;

    /**
     * 不实施变化
     * @param fileType
     * @param fold
     */
    public FoldToType(FileType fileType, String fold) {
        this.fileType = fileType;
        this.fold = fold;
        this.isChange = false;
    }

    /**
     * 实施变化
     * @param fileType
     * @param fold
     * @param width
     * @param high
     */
    public FoldToType(FileType fileType, String fold, int width, int high) {
        this.fileType = fileType;
        this.fold = fold;
        this.isChange = true;
        this.width = width;
        this.high = high;
    }

    public boolean isChange() {
        return isChange;
    }

    public void setChange(boolean change) {
        isChange = change;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHigh() {
        return high;
    }

    public void setHigh(int high) {
        this.high = high;
    }

    public FileType getFileType() {
        return fileType;
    }

    public void setFileType(FileType fileType) {
        this.fileType = fileType;
    }

    public String getFold() {
        return fold;
    }

    public void setFold(String fold) {
        this.fold = fold;
    }
}
